package com.bjpowernode.shop.Feign;

import com.bjpowernode.shop.domain.CountVo;
import com.bjpowernode.shop.domain.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("product-service")
public interface ProdServiceFeign {

    @GetMapping("/prod/prod/listBySkuId")
    List<Sku> listBySkuId(@RequestParam("skuIdList") List<Long> skuIdList);

    @PutMapping("/prod/prod/deductDbStock")
    Boolean deductDbStock(@RequestBody CountVo countVo);
}
